package cn.gov.pbc.tims.serviceInt;

import java.io.IOException;

import javax.mail.Folder;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sun.mail.pop3.POP3Folder;

import cn.gov.pbc.tims.util.PageData;

public interface IMailService {
	
	
	public Folder getFolder(String userName,String password) throws MessagingException;
	public void getAttachment(Folder folder,String uid,String fileName,HttpServletRequest request, HttpServletResponse response) throws IOException, Exception ;
	public String getDocContent(Folder folder,String uid,String fileName,HttpServletRequest request, HttpServletResponse response) throws Exception;
	public PageData getMail(Folder folder, Integer page, Integer rows, HttpServletRequest request)throws Exception;
	MimeMessage getMessageByUid(Folder folder, String uid) throws MessagingException;

}
